package org.awa.demo.opencv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.awa.demo.opencv.entity.GeoPolygonRoadEntity;
import org.awa.demo.opencv.entity.TrafficLogEntity;

import java.util.Date;
import java.util.List;

/**
 * device-manager
 *
 * @author hxq
 * @since 2020-12-09
 */
public interface TrafficLogMapper extends BaseMapper<TrafficLogEntity> {

    List<TrafficLogEntity> findListByDateAndRoad(@Param("roadId") Integer roadId,@Param("dateTime") Date dateTime);

    Long deleteByIdList(@Param("list") List<Integer> list);

    List<TrafficLogEntity> findListByDate(@Param("dateTime") Date dateTime);

    Long insertBatch(@Param("list") List<TrafficLogEntity> list);
}
